From: Jonas Dreßler Date: Fri, 5 Mar 2021 10:31:26 +0000 (+0100) Subject: st/entry: Invalidate shadow on cursor position/size changes X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~530^2^2~12 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2bb36db9e823ca616ec8af52f502665a58100049;p=gnome-shell.git st/entry: Invalidate shadow on cursor position/size changes When text shadows are used, the cursor indicating the current position also casts a shadow. This means we have to regenerate the shadow texture after the cursor position changed, so invalidate the shadow in that case. Part-of: --- diff --git a/src/st/st-entry.c b/src/st/st-entry.c index f8b07d043..d50c2548b 100644 --- a/src/st/st-entry.c +++ b/src/st/st-entry.c @@ -539,7 +539,11 @@ static void clutter_text_cursor_changed (ClutterText *text, StEntry *entry) { + StEntryPrivate *priv = ST_ENTRY_PRIV (entry); + st_entry_update_hint_visibility (entry); + + g_clear_pointer (&priv->text_shadow_material, cogl_object_unref); } static void